package com.xszx.test;

import com.xszx.App;
import com.xszx.bean.User;
import com.xszx.dao.UserDao;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = App.class)
@Slf4j
public class test01 {
    @Autowired
    private UserDao userDao;
    @Test
    public void test01(){
        User user=new User("张三","1233331","xingfuqu");
        userDao.save(user);
    }

}
